﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MaxStudio.Concrete.DBUtility
{
    public class OperationResult<T>
    {
        // the key of errorMessage, this is to support multi-languages.
        private String _errorMessageKey;
        // whether the operation is success or not
        private Boolean _operationSuccess = false;
        // the real object returns
        private T _obj;
        // exception messages.
        private String _exceptionString;

        public String errorMessageKey
        {
            get
			{
				return this._errorMessageKey;
			}
            set
            {
                this._errorMessageKey = value;
            }
        }

        public Boolean operationSuccess
        {
            get
            {
                return this._operationSuccess;
            }
            set
            {
                this._operationSuccess = value;
            }
        }

        public T obj
        {
            get
            {
                return this._obj;
            }
            set
            {
                this._obj = value;
            }
        }

        public String exceptionString
        {
            get
            {
                return this._exceptionString;
            }
            set
            {
                this._exceptionString = value;
            }
        }
    }
}
